package valeria;

import java.util.Scanner;

public class J10Circle {
	public static void main(String[]args){
		double radius,area, perim; 
		final double PI = 3.14; 
		
		Scanner sc=new Scanner(System.in);
		System.out.println("반지름을 입력하세요");
		radius=sc.nextDouble();
		
		area=getArea(PI,radius);
		perim=getPerim(PI,radius);
		
		System.out.println(radius);
		System.out.println(area);
		System.out.println(perim);
		
		sc.close();
	}//메인

	private static double getArea(final double PI,double radius) {
		return PI * radius * radius;
		}

	private static double getPerim(final double PI, double radius) {
		return 2 * PI * radius;
		
	}

}//종료
